import React, {useEffect, useState} from 'react';
import {View,} from '@tarojs/components';

import styles from './index.module.scss';
import {doLogin} from "@/_framework/services/Login";
import {goMallHome} from "@/mall/Go";


const Index: React.FC = () => {

    const [isReady, setIsReady] = useState<boolean>(false)


    useEffect(() => {
        load();
    }, []);

    const load = async () => {
        await doLogin({force: true})
        setIsReady(true)
        await goMallHome()
    };


    return (
        <View className={styles.page}>
            {
                isReady &&
                <>
                </>
            }

        </View>
    );
};

export default Index;
